<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 小练习 ：1. var arr = [1,2,"hello",function(){console.log(11)},function(){console.log(22)}]; 把所有的函数 执行了
        //  -->
        <script>
            var arr = [1,2,"hello",function(){console.log(11)},function(){console.log(22)}];
            for(var i=0;i<arr.length;i++){
                if(typeof arr[i]=="function"){
                   arr[i]();
                }
            }
         // 2. var arr2 = [2,1,3]; 打印 最大值 最小值 和中间的值；

        </script>
</body>
</html>